package com.hei.xxljob.service;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @author by jojo
 * @Date 2022/3/12
 * @Description
 */
@Service
public class KillerQueen {
    @Value("${server.port}")
    private String appPort;

    @XxlJob("killerqueen")
    public ReturnT kill(String s){
        System.out.println("killerqueen"+ LocalDateTime.now() +",端口号"+appPort);
        return ReturnT.SUCCESS;
    }
}
